Skip to content

Conversation

@United600
Copy link
Collaborator

@United600 United600 commented Sep 8, 2025

This pull request updates the file naming logic when saving snapshots in the media player controls. The main change corrects the timestamp format used in the filename to ensure dates are saved in the proper format.

  • Snapshot saving logic:
    • In PlayerControlsViewModel.cs, the file naming pattern in SaveSnapshotInternalAsync now uses DateTimeOffset.Now:yyyyMMdd_HHmmss instead of DateTime.Now:yyyymmdd_HHmmss, fixing the date format and ensuring the filename reflects the correct date and time.

@United600 United600 requested a review from Copilot September 8, 2025 21:10
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR fixes a date formatting issue in the snapshot file naming functionality. The DateTime format string was using lowercase 'mm' for months instead of uppercase 'MM', which would have resulted in minutes being used twice in the filename.

  • Corrected DateTime format string to properly represent months instead of minutes

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@United600 United600 changed the title fix: fix date formatting used when saving snapshot files fix: date formatting used when saving snapshot files Sep 8, 2025
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Sep 8, 2025
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Sep 15, 2025
@huynhsontung huynhsontung merged commit ffb2437 into main Sep 22, 2025
4 checks passed
@huynhsontung huynhsontung deleted the United600/fix-snapshot-name branch September 22, 2025 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working lgtm This PR has been approved by a maintainer size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants